import request from '@/framework/utils/request'
const savePartyWorkPlan = (params) => request({ url: '/partyPlan/save', method: 'post', data: params })
const queryPartyWorkPlan = (params) => request({ url: '/partyPlan/page', method: 'get', params })
const submitPartyWorkPlan = (params) => request({ url: '/partyPlan/submit', method: 'post', data: params })
const queryPartyWorkDetail = (params) => request({ url: '/partyPlan/detail', method: 'get', params })
const savePartyWorkField = (params) => request({ url: '/partyPlanField/save', method: 'post', data: params })
const getPartyWorkDetail = (params) => request({ url: '/partyPlanField/detail', method: 'get', params })
const submitPartyWorkField = (params) => request({ url: '/partyPlanField/submit', method: 'post', data: params })
const getDirectlySubOrg = (params) => request({ url: '/partyPlanIssue/directlySubOrg', method: 'get', params })
const issuedPartyWork = (params) => request({ url: '/partyPlanIssue/release', method: 'post', data: params })
const getSubOrgWorkProcess = (params) => request({ url: '/partyPlanIssue/detail', method: 'get', params })
const getParentIssuedWork = (params) => request({ url: '/partyPlan/parentIssued/page', method: 'get', params })
const getPartyWorkStatistic = (params) => request({ url: '/partyPlanStatistic/detail', method: 'get', params })
const savePartyWorkStatistic = (params) => request({ url: '/partyPlanStatistic/save', method: 'post', data: params })
const getPartyWorkStatisticMineDetail = (params) => request({ url: '/partyPlanStatisticMine/detail', method: 'get', params })
const submitPartyWork = (params) => request({ url: '/partyPlanStatistic/submit', method: 'post', data: params })
const savePartyWorkStatisticMine = (params) => request({ url: '/partyPlanStatisticMine/save', method: 'post', data: params })
const summaryPartyWorkStatistic = (params) => request({ url: '/partyPlanStatistic/summary', method: 'post', data: params })
const getPartyWorkLedgerDetail = (params) => request({ url: '/partyPlanLedger/detail', method: 'get', params })
const savePartyWorkLedgerDetail = (params) => request({ url: '/partyPlanLedger/save', method: 'post', data: params })
const submitPartyWorkLedgerDetail = (params) => request({ url: '/partyPlanLedger/submit', method: 'post', data: params })
const getPartyWorkLedgerMineDetail = (params) => request({ url: '/partyPlanLedgerMine/detail', method: 'get', params })
const savePartyWorkLedgerMine = (params) => request({ url: '/partyPlanLedgerMine/save', method: 'post', data: params })
const summaryPartyWorkLedger = (params) => request({ url: '/partyPlanLedger/summary', method: 'post', data: params })
const exportPartyWorkLedgerMine = (params) => request({ url: '/partyPlanLedgerMine/export', method: 'get', params, responseType: 'blob' })
const exportPartyWorkLedger = (params) => request({ url: '/partyPlanLedger/export', method: 'get', params, responseType: 'blob' })
const exportPartyWorkStatistic = (params) => request({ url: '/partyPlanStatistic/export', method: 'get', params, responseType: 'blob' })
const exportPartyWorkStatisticMine = (params) => request({ url: '/partyPlanStatisticMine/export', method: 'get', params, responseType: 'blob' })
const endPartyWork = (params) => request({ url: '/partyPlan/end', method: 'get', params })
export {
  savePartyWorkPlan,
  queryPartyWorkPlan,
  submitPartyWorkPlan,
  queryPartyWorkDetail,
  savePartyWorkField,
  getPartyWorkDetail,
  submitPartyWorkField,
  getDirectlySubOrg,
  issuedPartyWork,
  getSubOrgWorkProcess,
  getParentIssuedWork,
  getPartyWorkStatistic,
  savePartyWorkStatistic,
  getPartyWorkStatisticMineDetail,
  submitPartyWork,
  savePartyWorkStatisticMine,
  summaryPartyWorkStatistic,
  getPartyWorkLedgerDetail,
  savePartyWorkLedgerDetail,
  submitPartyWorkLedgerDetail,
  getPartyWorkLedgerMineDetail,
  savePartyWorkLedgerMine,
  summaryPartyWorkLedger,
  exportPartyWorkLedgerMine,
  exportPartyWorkLedger,
  exportPartyWorkStatistic,
  exportPartyWorkStatisticMine,
  endPartyWork
}
